<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: SelectCommand Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">SelectCommand Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="SelectCommand" --><!-- doxytag: inherits="CommandBase" -->
<p><code>#include &lt;<a class="el" href="_select_command_8h_source.html">SelectCommand.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SelectCommand:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_select_command.png" usemap="#SelectCommand_map" alt=""/>
  <map id="SelectCommand_map" name="SelectCommand_map">
<area href="class_command_base.html" alt="CommandBase" shape="rect" coords="0,56,102,80"/>
<area href="class_i_command.html" alt="ICommand" shape="rect" coords="0,0,102,24"/>
</map>
 </div></div>

<p><a href="class_select_command-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae22d02ef4fc6ba653713b33a0ac93f7f"></a><!-- doxytag: member="SelectCommand::SelectCommand" ref="ae22d02ef4fc6ba653713b33a0ac93f7f" args="(ICommand *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>SelectCommand</b> (<a class="el" href="class_i_command.html">ICommand</a> *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c416df21fba06b745945b533447a612"></a><!-- doxytag: member="SelectCommand::SelectCommand" ref="a9c416df21fba06b745945b533447a612" args="(const SelectCommand &amp;cpy)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>SelectCommand</b> (const <a class="el" href="class_select_command.html">SelectCommand</a> &amp;cpy)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_i_command.html">ICommand</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#af3f83dc7766ffda8ad7dc06c9ee3561f">clone</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#a988e16cc34d68f56494f614bedc2cbab">execute</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#abf3bb5c35f0b24d3a6772f8270dbb943">mouseMoveEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#aa9973e309b0b1a4ea2e3b72dc7fa2408">mousePressEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#a21827f61c06accfbd9fb41588c53fe99">mouseReleaseEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#a849b100c020aab67ed82633177a8f1df">paintGL</a> (<a class="el" href="class_gl_canvas.html">GlCanvas</a> *c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#a8f67a1ee7f965f2cbf3c02bcf36e7327">getOptionsWidget</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#ab1d1a0c4fedc2cb4cf30601bed6109e9">setSelectionType</a> (SelectionType type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SelectionType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_select_command.html#a940a6068d471585c57e190b483f12e36">selectionType</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implements a simple object selection command.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Juan Roberto Cabral Flores &lt;<a href="mailto:roberto.cabral@gmail.com">roberto.cabral@gmail.com</a>&gt; </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af3f83dc7766ffda8ad7dc06c9ee3561f"></a><!-- doxytag: member="SelectCommand::clone" ref="af3f83dc7766ffda8ad7dc06c9ee3561f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_i_command.html">ICommand</a> * SelectCommand::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new instance of the command. The new command instance should have, at least, the same configuration parameters as the original one. </p>

<p>Implements <a class="el" href="class_i_command.html#afde1282c74d8117bab3b3f4570e96d0a">ICommand</a>.</p>

</div>
</div>
<a class="anchor" id="a988e16cc34d68f56494f614bedc2cbab"></a><!-- doxytag: member="SelectCommand::execute" ref="a988e16cc34d68f56494f614bedc2cbab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::execute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Execute the command in no interactive way. This means, that once that all the parameters of the command are set, the command will be executed without user intervention. </p>

<p>Reimplemented from <a class="el" href="class_command_base.html#a91c1e18902c4f835b6b43777fdc87353">CommandBase</a>.</p>

</div>
</div>
<a class="anchor" id="a8f67a1ee7f965f2cbf3c02bcf36e7327"></a><!-- doxytag: member="SelectCommand::getOptionsWidget" ref="a8f67a1ee7f965f2cbf3c02bcf36e7327" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QWidget * SelectCommand::getOptionsWidget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method returns the options or configuration widget of the command. The widget returned should contain all the controls necesary to allow the user to change configuration parameters of the command. </p>

<p>Implements <a class="el" href="class_i_command.html#ab026706ccf51db06785f61c489b564d1">ICommand</a>.</p>

</div>
</div>
<a class="anchor" id="abf3bb5c35f0b24d3a6772f8270dbb943"></a><!-- doxytag: member="SelectCommand::mouseMoveEvent" ref="abf3bb5c35f0b24d3a6772f8270dbb943" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::mouseMoveEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a mouse move event ocurrs. This method is called by the widget (a QGLWidget). </p>

<p>Reimplemented from <a class="el" href="class_command_base.html#a7e24718e3ccb53e6c965def4f4c92bbb">CommandBase</a>.</p>

</div>
</div>
<a class="anchor" id="aa9973e309b0b1a4ea2e3b72dc7fa2408"></a><!-- doxytag: member="SelectCommand::mousePressEvent" ref="aa9973e309b0b1a4ea2e3b72dc7fa2408" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::mousePressEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a mouse press event ocurrs. This method is called by the widget (a QGLWidget). </p>

<p>Reimplemented from <a class="el" href="class_command_base.html#afb621f4aa1c509230093b761cb367889">CommandBase</a>.</p>

</div>
</div>
<a class="anchor" id="a21827f61c06accfbd9fb41588c53fe99"></a><!-- doxytag: member="SelectCommand::mouseReleaseEvent" ref="a21827f61c06accfbd9fb41588c53fe99" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::mouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when a mouse release event ocurrs. This method is called by the widget (a QGLWidget). </p>

<p>Reimplemented from <a class="el" href="class_command_base.html#abb2bbbc05a3c3eaf6b9e0c655883a9b3">CommandBase</a>.</p>

</div>
</div>
<a class="anchor" id="a849b100c020aab67ed82633177a8f1df"></a><!-- doxytag: member="SelectCommand::paintGL" ref="a849b100c020aab67ed82633177a8f1df" args="(GlCanvas *c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::paintGL </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_gl_canvas.html">GlCanvas</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Used to display anything specific to the command as user feedback. </p>

<p>Reimplemented from <a class="el" href="class_command_base.html#a26189259f723383fc5784d4187a69e09">CommandBase</a>.</p>

</div>
</div>
<a class="anchor" id="a940a6068d471585c57e190b483f12e36"></a><!-- doxytag: member="SelectCommand::selectionType" ref="a940a6068d471585c57e190b483f12e36" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SelectionType SelectCommand::selectionType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function returns the kind of primitives that this selection works on. </p>

</div>
</div>
<a class="anchor" id="ab1d1a0c4fedc2cb4cf30601bed6109e9"></a><!-- doxytag: member="SelectCommand::setSelectionType" ref="ab1d1a0c4fedc2cb4cf30601bed6109e9" args="(SelectionType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SelectCommand::setSelectionType </td>
          <td>(</td>
          <td class="paramtype">SelectionType&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function set the kind of primitive that the selection should work on.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>primitive type to select. Can be any kind SelectionType </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>qsculpt/include/command/<a class="el" href="_select_command_8h_source.html">SelectCommand.h</a></li>
<li>qsculpt/src/command/SelectCommand.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu May 31 2012 16:19:52 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
